import { DataTableColumns } from 'naive-ui';

/**
 * "areaId": 1680092,
 *        "areaName": "潜龙92服",
 *        "roleNum": 233,
 *        "totalRecharge": 9359,
 *        "ltv": 40.17,
 *        "createTime": "2023-12-01"
 */

export interface RowData {
  areaName: string;
  roleNum: number;
  totalRecharge: number;
  ltv: number;
}

export const columns: DataTableColumns<RowData> = [
  {
    title: '区服',
    key: 'areaName',
    width: 100,
  },
  {
    title: '角色数',
    key: 'roleNum',
    width: 150,
  },
  {
    title: '累计充值',
    key: 'totalRecharge',
    width: 100,
  },
  {
    title: 'LTV',
    key: 'ltv',
    width: 100,
  },
];
